package kpython.backend.ir.tree;

import java.util.LinkedList;
import java.util.List;

public class AtomList extends Expr {

public String atom = null;

	public List<IRNode> items = new LinkedList<IRNode>();
	public int type = -1;
	
	public void addItem(IRNode node) {
		items.add(node);
	}
	
	public List<IRNode> getItems() {
		return items;
	}
	
	@Override
	public void printTree(String tab) {
		System.out.println(tab+this.getClass().getSimpleName()+" "+atom);
	}
	
	public Object accept(IRTreeVisitor visitor, Object data) {
		return visitor.visit(this, data);
	}
	
	public String toString() {
		return this.getClass().getSimpleName();
	}
}
